<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
			ul,
			li {
				margin: 0;
				padding: 0;
				list-style: none;
			}
			a {
				color: #000;
				text-decoration: none;
			}
			body {
				background-color: #f2f2f2;
			}
			ul > li {
				float: left;
				margin-left: 10px;
			}

			ul > li > a {
				display: inline-block;
				width: 36px;
				height: 36px;
				text-align: center;
				line-height: 36px;
				border-radius: 5px;
				background-color: #fff;
			}

			ul > li > a:hover,
			ul > li.active > a {
				color: #fff;
				background-color: blue;
			}
			ul > li.next > a {
				width: 80px;
			}
		</style>
	</head>
	<body>
		<ul>
			<li class="item active"><a href="#">1</a></li>
			<li class="item"><a href="#">2</a></li>
			<li class="item"><a href="#">3</a></li>
			<li class="item"><a href="#">4</a></li>
			<li class="item"><a href="#">5</a></li>
			<li class="item"><a href="#">6</a></li>
			<li class="item"><a href="#">7</a></li>
			<li class="item"><a href="#">8</a></li>
			<li class="item"><a href="#">9</a></li>
			<li class="item"><a href="#">10</a></li>
			<li class="item next"><a href="#">下一页&gt;</a></li>
		</ul>
	</body>
</html>
